{%extends "link_base.html"%}
{%block title%}Edit Link -{%endblock%}
{%block head%}{{form.media}}{%endblock%}
{%block link_body%}
<form action="{%url app.views.edit link.key.id%}"
      method="post" id="edit-form">
<table>
{{form}}
<tr><td><input type="submit" value="Update Link"></td></tr>
</table>
</form>

<p>
<ul>
<li>Owner: {{link.owner}}
<li>Created: {{link.created|date:"Y/m/d H:i:s"}}
<li>Modified: {{link.modified|date:"Y/m/d H:i:s"}}
</ul>
</p>

{%ifequal link.owner user%}
<h2>Delete This Link</h2>

<form action="{%url app.views.delete link.key.id%}" method="post">
<input type="submit" value="Delete Link"> There is no undo!
</form>
{%endifequal%}

{%endblock%}
